@import "common";
@import "default";

#home-main {
  position: relative;
  width: 100%;
  height: 100%;
  background: url("../images/home-bg.jpg") no-repeat center center;
  background-size: cover;
  .home-content {
    display: none;
    & > div {
      display: none;
    }
    .close-dialog {
      position: absolute;
      right: 0;
      top: 0;
      width: toRem(60px);
      height: toRem(60px);
      margin: 0 0 $s-space-lg $s-space-lg;
      background: url("../images/closeBtn.png") no-repeat center center;
      background-size: cover;
    }
    .mine-info, .friend-info {
      position: absolute;
      display: block;
      top: 0;
      left: 0;
      width: toRem(260px);
      height: toRem(160px);
      padding: $s-space;
      background: url("../images/avatar-bg.png") no-repeat center center;
      background-size: cover;
      .mineInfo-content, .friendInfo-content {
        .basic-info {
          @include box;
          .avatar-box {
            width: toRem(60px);
            height: toRem(60px);
            img {
              width: toRem(60px);
              height: toRem(60px);
            }
          }
          .otherBasic-info {
            @include boxflex(1);
            background: #f1dba5;
            margin-left: $s-space-sm;
            padding-left: $s-space-sm;
            p {
              font-size: $s-font-h5;
              padding-bottom: $s-space-sm;
            }
            .experience {
              font-size: $s-font-h7;
              .out-line {
                position: relative;
                display: inline-block;
                height: toRem(30px);
                width: toRem(120px);
                vertical-align: middle;
                text-align: center;
                overflow: hidden;
                border-radius: $s-space-sm;
                @include border($s-success);
                strong {
                  position: absolute;
                  left: 0;
                  top: 0;
                  background: #acd93d;
                  height: toRem(28px);
                  line-height: toRem(30px);
                  width: 10%;
                }
                span {
                  position: absolute;
                  left: 0;
                  color: $s-gray-light;
                }
              }
              .user-level {
                font-weight: bold;
              }
            }
          }
        }
        .coin-info, .grapeCoin-info {
          @include box;
          .coin-num {
            @include boxflex(1);
            margin-top: $s-space;
            padding-left: $s-space-lg*2;
            color: $s-white;
            font-size: $s-font-h7;
            img {
              height: toRem(20px);
              margin-right: $s-space-sm;
            }
          }
          .btn-box {
            width: toRem(60px);
            text-align: right;
            padding-right: $s-space-sm;
            button {
              padding: $s-space-sm;
              font-size: $s-font-h7;
              background: #a6d949;
              color: $s-black;
              min-height: auto;
              border: none;
            }
          }
        }
      }
    }
    .friend-info {
      display: none;
      right: 0;
      left: auto;
    }
    .field-container, .field-right-container {
      position: absolute;
      display: block;
      //top: toRem(280px);
      //left: toRem(220px);
      top: 45%;
      left: 19%;
      width: toRem(280px);
      height: toRem(200px);
      background: rgba(255, 255, 255, 0);
      transform: skewX(-32deg);
      .field-content {
        .field-item {
          position: relative;
          float: left;
          width: toRem(140px);
          height: toRem(66px);
          .field-img {
            img {
              display: none;
              transform: skewX(32deg);
              position: absolute;

              &.isShow {
                display: block;
              }
              &.step1 {
                left: toRem(64px);
                top: toRem(20px);
                width: toRem(41px);
                height: toRem(33px);
              }
              &.step2 {
                left: toRem(24px);
                top: toRem(-24px);
                width: toRem(64px);
                height: toRem(72px);
              }
              &.step3 {
                left: toRem(-20px);
                top: toRem(-100px);
                width: toRem(135px);
                height: toRem(143px);
              }
              &.step4 {
                left: toRem(-30px);
                top: toRem(-96px);
                width: toRem(139px);
                height: toRem(139px);
              }
              &.step5 {
                left: toRem(-20px);
                top: toRem(-100px);
                width: toRem(64px);
                height: toRem(72px);
              }
              &.step6 {
                left: toRem(-20px);
                top: toRem(-100px);
                width: toRem(64px);
                height: toRem(72px);
              }
              &.add-field {
                display: block;
                left: toRem(54px);
                top: toRem(0px);
                width: toRem(42px);
                height: toRem(49px);
                animation: addField 3s;
                -moz-animation: addField 3s; /* Firefox */
                -webkit-animation: addField 3s; /* Safari 和 Chrome */
                -o-animation: addField 3s; /* Opera */
                animation-iteration-count: infinite;
                animation-timing-function: ease;
              }
            }
            .steal-num {
              position: absolute;
              display: none;
              left: toRem(20px);
              top: toRem(-40px);
              width: toRem(100px);
              height: toRem(40px);
              img {
                display: block;
                width: toRem(34px);
                height: toRem(28px);
              }
            }
          }
        }
      }
    }
    .field-right-container {
      //top: toRem(280px);
      //left: toRem(660px);
      top: 45%;
      left: 60%;
      width: toRem(140px);
      transform: skewX(32deg);
      .field-content {
        .field-item {
          .field-img {
            img {
              transform: skewX(-32deg);
              &.step1 {

              }
              &.step2 {
                left: toRem(64px);
              }
              &.step3 {
                left: toRem(50px);
                top: toRem(-90px);
              }
              &.step4 {
                left: toRem(50px);
              }
              &.step5 {
                left: toRem(120px);
              }
            }
            .steal-num {
              left: toRem(100px);
            }
          }
        }
      }
    }
    .leftCenter-box, .rightCenter-box {
      position: absolute;
      display: block;
      top: 50%;
      transform: translateY(-50%);
      text-align: center;
      width: toRem(80px);
      height: toRem(120px);
      background: yellow;
    }
    .leftCenter-box {
      left: 0;
      background: url("../images/go-stealGold.png") no-repeat center center;
      background-size: cover;
    }
    .rightCenter-box {
      right: 0;
      background: url("../images/go-myFriend.png") no-repeat center center;
      background-size: cover;
    }
    .myFriends-box {
      position: absolute;
      //display: block;
      right: 0;
      bottom: toRem(120px);
      width: toRem(400px);
      height: toRem(300px);
      background: yellow;
    }
    .bottom-toolbar {
      position: absolute;
      display: block;
      left: 50%;
      bottom: 0;
      width: toRem(700px);
      height: toRem(100px);
      transform: translateX(-50%);
      background: url("../images/homeBottom-toolbar.png") no-repeat center center;
      background-size: cover;
      padding: 0 $s-space-lg;
      ul {
        @include box;
        li {
          @include boxflex(1);
          width: 20%;
          height: toRem(100px);
        }
      }
    }
    .back-home {
      position: absolute;
      //display: block;
      right: toRem(20px);
      bottom: toRem(20px);
      width: toRem(60px);
      height: toRem(100px);
      background: url("../images/back-home.png") no-repeat center center;
      background-size: cover;
    }
    .dogHome-box {

    }
    .propsMall-dialog, .myPropsMall-dialog {
      position: absolute;
      //display: block;
      top: 0;
      bottom: 0;
      left: toRem(100px);
      right: toRem(100px);
      background: url("../images/propsMall-bg.png") no-repeat center center;
      background-size: cover;
      .propsMall-content, .myPropsMall-dialog-content {
        position: relative;
        width: 100%;
        height: 100%;
        overflow-y: scroll;
        .notice {
          width: toRem(600px);
          height: toRem(60px);
          line-height: toRem(60px);
          padding-left: toRem(60px);
          font-size: $s-font-h5;
          margin: 0 auto;
          margin-top: $s-space-lg*4;
          margin-bottom: $s-space-lg;
          background: url("../images/icon-notice.png") #e0d276 no-repeat left center;
          background-size: toRem(50px);
        }
        ul {
          position: absolute;
          top: toRem(160px);
          bottom: 0;
          padding: 0 $s-space-lg*1.5 0 $s-space-lg*2.5;
          overflow: hidden;
          overflow-y: scroll;
          font-size: $s-font-h6;
          li {
            float: left;
            width: toRem(180px);
            height: toRem(300px);
            padding: $s-space;
            margin: 0 $s-space-lg $s-space-lg*2 0;
            background: #f8e6d4;
            border-radius: $s-space-lg;
            .goods-pic {
              width: toRem(160px);
              height: toRem(160px);
              margin-bottom: $s-space;
            }
            .info-box {
              line-height: 1.5;
              .count {
                color: #a85913;
              }
              p {
                * {
                  vertical-align: middle;
                }
                img {
                  width: toRem(20px);
                }
              }
              .buyGoods-btn {
                margin-top: $s-space-sm;
                text-align: center;
                .toBuy-btn {
                  width: toRem(100px);
                  height: toRem(30px);
                  line-height: toRem(30px);
                  border: none;
                  background: #e0d276;
                  outline: none;
                }
              }
            }
          }
        }
      }
    }
    .myPropsMall-dialog {
      background: url("../images/myProps-bg.png") no-repeat center center;
      background-size: cover;
    }
    .propsMall-buyDialog {
      position: absolute;
      //display: block;
      top: 50%;
      left: 50%;
      width: toRem(655px);
      height: toRem(456px);
      transform: translate(-50%, -50%);
      background: url("../images/buyGoods-bg.png") no-repeat center center;
      background-size: contain;
      .propsMallBuy-content {
        position: relative;
        padding-top: $s-space-lg*2;
        .close-dialog {

        }
        .buyNum-box {
          position: relative;
          width: toRem(400px);
          margin: 0 auto;
          margin-bottom: $s-space-lg*3;
          padding: $s-space-lg+$s-space-sm;
          .buy-num {
            height: toRem(90px);
            line-height: toRem(90px);
            background: #f4dcc3;
            color: #9b5213;
            font-weight: 700;
            text-align: center;
            font-size: toRem(40px);
          }
          .buy-minus, .buy-add {
            position: absolute;
            top: 0;
            width: toRem(142px);
            height: toRem(135px);
            img {
              width: 100%;
            }
          }
          .buy-minus {
            left: 0;
          }
          .buy-add {
            right: 0;
          }
        }
        .buy-btn {
          width: 80%;
          height: toRem(120px);
          margin-left: 10%;
          margin-btn: $s-space-lg*2;
          background: $s-white;
          padding: $s-space;
          .buyBtn-content {
            height: toRem(100px);
            background: #e35238;
            color: $s-white;
            font-weight: 700;
            line-height: 1.6;
            text-align: center;
            h4 {
              font-size: $s-font-h2;
              font-weight: 700;
            }
            p {
              font-size: $s-font-h5;
              * {
                vertical-align: middle;
              }
            }
          }
        }
      }
    }
    .myDetailInfo-box {
      position: absolute;
      right: toRem(100px);
      bottom: toRem(100px);
      width: toRem(520px);
      height: toRem(340px);
      background: url("../images/myDetail-info.png") no-repeat center center;
      background-size: cover;
      .myDetailInfo-content {
        padding: $s-space-lg*3 $s-space-lg*2 $s-space-lg;
        ul {
          li {
            @include box;
            .item-tip {
              width: toRem(120px);
              padding-right: $s-space-lg;
              color: #f7c18d;
              line-height: toRem(50px);
            }
            .item-info {
              @include boxflex(1);
              background: #f7c18d;
              padding: $s-space $s-space-lg;
              border-radius: $s-space;
              p, a {
                color: #af630d;
              }
            }
            &:first-child {
              margin-bottom: $s-space-lg;
            }
          }
        }
      }
    }
    .searchFriend-box {
      position: absolute;
      //display: block;
      top: 50%;
      left: 50%;
      width: toRem(584px);
      height: toRem(370px);
      transform: translate(-50%, -50%);
      background: url("../images/addFriend-bg.png") no-repeat center center;
      background-size: contain;
      .searchFriend-content {
        padding: $s-space-lg*4 $s-space-lg*4 0;
        button {
          padding: $s-space-sm $s-space-lg;
          background: #a5d847;
          color: #fff;
          border: 1px solid #fff;
          outline: none;
        }
        .search-box {
          padding: $s-space;
          background: #fdd991;
          margin-bottom: $s-space-lg;
          span {
            color: #a16d2b;
          }
          input {
            background: #d27e13;
            border: none;
            outline: none;
            width: toRem(180px);
            padding: $s-space-sm $s-space;
            margin-right: $s-space;
          }
        }
        .search-result {
          background: #fdd991;
          height: toRem(140px);
          overflow-y: auto;
          .no-result {
            display: none;
            padding: $s-space-lg;
          }
          .result-box {
            overflow: hidden;
            overflow-y: auto;
            padding: $s-space;
            .result-user {
              float: left;
              width: toRem(200px);
              .resultUser-content {
                @include box;
                .resultImg-box {
                  width: toRem(80px);
                  height: toRem(80px);
                  @include border;
                  margin-right: $s-space;
                }
                .result-info {
                  @include boxflex(1);
                  p {
                    font-size: $s-font-h5;
                    margin-top: $s-space-sm;
                    .addFriend-btn {
                      padding: 0 $s-space;
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
    .myFriendsList-box {
      position: absolute;
      //display: block;
      top: 50%;
      right: 0;
      width: toRem(573px);
      height: toRem(363px);
      transform: translateY(-50%);
      background: url("../images/myFriend-bg.png") no-repeat center center;
      background-size: contain;
      color: #8b6f55;
      .myFriendsList-content {
        padding: $s-space-lg*2 $s-space-lg*3;
        position: relative;
        @include box;
        .left-content {
          width: toRem(190px);
          .friend-title {
            padding: $s-space $s-space-lg;
            h4 {
              background: #e4e0e0;
              text-align: center;
              font-size: 1.1rem;
              border-radius: 0.5rem;
              padding: 0.3rem;
            }
          }
          .friend-list {
            height: toRem(200px);
            overflow-y: scroll;
            .friend-item {
              background: #e4e0e0;
              img {
                width: toRem(40px);
                height: toRem(40px);
              }
              &.active {
                background: #c7acac;
              }
              p {
                padding: $s-space;
                @include border-bottom;
                line-height: toRem(40px);
              }
            }
          }
          .friend-bottom {
            @include box;
            .addFriend-box, .delFriend-box {
              @include boxflex(1);
              img {
                height: toRem(30px);
              }
            }
            .delFriend-box {
              text-align: right;
            }
          }
        }
        .right-content {
          @include boxflex(1);
          .talk-content {
            width: toRem(300px);
            padding: 0 $s-space-lg;
            .talk-title {
              padding: $s-space;
            }
            .talk-detail {
              padding: $s-space;
              background: #8f7a60;
              height: toRem(180px);
              margin-bottom: $s-space;
              overflow-y: scroll;
              ul {
                li {
                  span {
                    display: inline-block;
                    max-width: 70%;
                    font-size: 0.9rem;
                    margin-bottom: 0.3rem;
                    border-radius: 0.3rem;
                    padding: $s-space-sm $s-space;
                    background: #f0d4b8;
                    color: #8b6f55;
                  }
                  &.friend-msg {
                    text-align: left;
                    //padding-left: $s-space;
                  }
                  &.mine-msg {
                    text-align: right;
                  }
                }
              }
            }
            .talk-send {
              input {
                width: toRem(160px);
                border: none;
                outline: none;
                border-radius: $s-space;
                padding: $s-space-sm $s-space;
              }
              button {
                border: none;
                padding: $s-space-sm $s-space;
                background: #f6dd9d;
                color: #8f7a60;
                margin-right: $s-space;
              }
            }
          }
        }
      }
    }
    .edit-box {
      position: absolute;
      top: 50%;
      left: 50%;
      width: toRem(651px);
      height: toRem(462px);
      transform: translate(-50%, -50%);
      background: url("../images/quitGame-bg.png") no-repeat center center;
      background-size: cover;
      .editBox-content {
        padding: $s-space-lg*2;
        padding-top: $s-space-lg*8;
        text-align: center;
        .msg-content {
          color: #b94700;
          font-size: $s-font-h2;
          margin-bottom: $s-space-lg*2;
        }
        button {
          @include border($s-white, toRem(3px));
          padding: $s-space $s-space-lg*2;
          color: $s-white;
          &.edit-game {
            background: #a5d847;
          }
          &.close-editDialog {
            background: #e35238;
          }
        }
      }
    }
    .fieldGuide-box {
      position: absolute;
      display: none;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.3);
      .fieldGuide-content {
        position: relative;
        width: 100%;
        img {
          display: block;
          width: toRem(1000px);
          margin: 0 auto;
          margin-top: toRem(80px);
        }
        .guide-text {
          position: absolute;
          top: toRem(100px);
          left: toRem(80px);
          width: toRem(460px);
          height: toRem(100px);
          color: #a35a10;
          font-weight: bold;
          font-size: $s-font-h3;
          line-height: 1.7;
        }
      }
    }
    .dog-dialog {
      position: absolute;
      display: none;
      width: toRem(100px);
      height: auto;
      right: toRem(90px);
      bottom: toRem(150px);
      img {
        width: 100%;
      }
    }
  }
  .progressbar-box {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    .progressbar-content {
      position: relative;
      .progressbar1 {
        position: absolute;
        bottom: toRem(50px);
        width: 80%;
        left: 10%;
        margin: auto;
        height: toRem(34px);
        border: toRem(4px) solid #fecf4c;
        border-radius: toRem(34px);
        overflow: hidden;
        .progressbar{
          margin: 0 !important;
        }
      }
      img {
        width: 100%;
        height: 100%;
      }
    }
  }
  .recharge-box{
    position: absolute;
    //display: block;
    top: 50%;
    left: 50%;
    width: toRem(655px);
    height: toRem(456px);
    transform: translate(-50%, -50%);
    background: url("../images/buyGoods-bg.png") no-repeat center center;
    background-size: contain;

  }
}

@keyframes addField {
  0% {
    left: toRem(54px);
    top: toRem(0px);
  }
  50% {
    left: toRem(50px);
    top: toRem(8px);
  }
  100% {
    left: toRem(54px);
    top: toRem(0px);
  }
}


















